/**
 * @author yanhaijiang
 *
 */
package bid.yanhj.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动器启动的时候扫描servlet组件
 *
 */

@SpringBootApplication
@ServletComponentScan // 启动扫描@WebServlet，并将该类实例化完成注册。
@MapperScan("bid.yanhj.springboot.mapper") // 整合mybaits mapper接口扫描
@EnableCaching // 启动 ehcache 缓存开启
@EnableScheduling // 开启定时
public class springbootApplication {
    public static void main(String[] args) {
        // 启动应用
        SpringApplication.run(springbootApplication.class, args);
    }
}